package com.aosan.website.common.core.utils

import org.springframework.web.bind.annotation.ExceptionHandler

/**
 * 异常处理
 */
abstract class BaseExceptionHandler {

    @ExceptionHandler(Exception::class)
    fun exceptionHandler(exception: Exception): Any {
        return ResultData.err(exception.message, "服务器发生异常")
    }
}